﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

using Microsoft.Windows.Controls.Ribbon;

namespace TestRibbonControl
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void Window_Initialized(object sender, EventArgs e)
        {
           
            //RibbonApplicationMenuItem rb = new RibbonApplicationMenuItem();
            //rb.Name="Aipasoft";
             
            //rb.InputGestureText = "Elizabeth";
            //rb.Click+=new RoutedEventHandler(rb_Click);
            //RibbonApplicationMenu mnu = new RibbonApplicationMenu();
            //mnu.Name = "AA";
            //ribbon.ApplicationMenu = mnu;
            //ribbon.ApplicationMenu.Items.Add(rb);

            List<string> mymenuitems = new List<string>();  // = someinterface
            mymenuitems.Add("Test Menu 1");
            mymenuitems.Add("Test Menu 2");
            mymenuitems.Add("Test Menu 3");
            mymenuitems.Add("Test Menu 4");
            foreach (var item in mymenuitems)
            {
                var margins = new Thickness(2);
                var newtextbox = new Label() { Margin = margins, Content = item };
                MenuItem_Company.Items.Add(newtextbox);
            }
        }

        void rb_Click(object sender, RoutedEventArgs e)
        {
            MessageBox.Show("ads");
        }

        private void ribbon_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {

        }

        private void MenuItem1_Click(object sender, RoutedEventArgs e)
        {

        }

        private void MenuItem2_Click(object sender, RoutedEventArgs e)
        {

        }

        private void Exit(object sender, RoutedEventArgs e)
        {

        }
    }
}
